import 'package:flutter/material.dart';

class Proposal extends StatefulWidget {
  @override
  _ProposalState createState() => _ProposalState();
}

class _ProposalState extends State<Proposal> {
  TextEditingController _text = new TextEditingController();
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('投诉建议'),
        elevation: 0,
      ),
      body: Container(
        child: Stack(
          children: [
            Positioned(
              left: 30,
              child: SizedBox(
                width: 300,
                height: 48,
                child: ElevatedButton(
                  child: Text('确认提交'),
                  style: ElevatedButton.styleFrom(primary: Colors.black),
                  onPressed: () {},
                ),
              ),
              bottom: 40,
            ),
            Column(
              crossAxisAlignment: CrossAxisAlignment.start,
              children: [
                Container(
                  padding: EdgeInsets.only(left: 10, right: 10),
                  child: TextField(
                    minLines: 5,
                    maxLines: 5,
                    controller: _text,
                    decoration: InputDecoration(
                        hintText: '请仔细描述你的问题', border: InputBorder.none),
                  ),
                ),
                Container(
                  child: IconButton(icon: Icon(Icons.add), onPressed: () {}),
                ),
              ],
            )
            //输入框
          ],
        ),
      ),
    );
  }
}
